import { exInput, exSelect, exColorPicker, exInputNumber } from '@ve/common/components/extension'
export default {
  VERSION: '20220720',
  type: 'UiPdaText',
  name: '文本',
  icon: 'link',

  //数据别名
  // dataName: 'uiPdaInputCreate_data',
  //数据集合 表单 列表等等
  data: {},
  extension: {
    textContent: exInput('文字内容', '文本组件'),
    fontSize: exInput('文字大小', '12px', '文字大小以px为单位'),
    fontWeight: exSelect('字体粗细', 'normal', [
      { value: 'normal', label: '400' },
      { value: 'bold', label: '700' },
      { value: 'bolder', label: '800' },
      { value: 'number', label: '900' },
    ]),

    color: exColorPicker('字体颜色', '#000000'),
    textAlign: exSelect('对齐方式', 'left', [
      { value: 'left', label: '左' },
      { value: 'center', label: '中' },
      { value: 'right', label: '右' },
    ]),
    padding: exInputNumber('内边距', 0, -12, 12),

    textDecoration: exSelect('有无下划线', 'none', [
      { value: 'none', label: '无' },
      { value: 'underline', label: '有' },
    ]),
  },
  //交互
  interaction: [],
  //条件、逻辑指令
  // logicInstruction: [],
}
